package cn.youqu.happy.module.youqu.controller.app.userArrange.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

import static cn.youqu.happy.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("用户 APP - 用户计划创建 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppUserArrangeCreateReqVO extends AppUserArrangeBaseVO {
    @ApiModelProperty(value = "活动名")
    @NotNull(message = "活动名 不能为空")
    private String activityName;

    @ApiModelProperty(value = "活动id")
    @NotNull(message = "活动id 不能为空")
    private Integer activityId;

    @ApiModelProperty(value = "开始日期")
    @NotNull(message = "开始日期 不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date startDate;

    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间 不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date startTime;

    @ApiModelProperty(value = "结束日期")
    @NotNull(message = "结束日期 不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date endDate;

    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间 不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date endTime;
}
